import Cookies from 'js-cookie'

const PermissionUid = 'Permission-Uid'

// localStorage本地存储
export function getLocalUid() {
  return localStorage.getItem(PermissionUid);
}

export function setLocalUid(data) {
  return localStorage.setItem(PermissionUid, data)
}

const PermissionId = 'Permission-Id'

export function getLocalId() {
  return Cookies.get(PermissionId);
}

export function setLocalId(data) {
  return Cookies.set(PermissionId, data);
}

const PermissionUserName = 'Permission-UserName'

export function getLocalUserName() {
  return Cookies.get(PermissionUserName);
}

export function setLocalUserName(data) {
  return Cookies.set(PermissionUserName, data);
}
